import http from "./http";


// 阅读消息
async function ReadMessages(params) {
    let urls=`/api/ShuttleMessageNotification/ReadMessages?ids=`+params
    return http.get(urls)
}


// 获取这个人的全部未读消息
async function GetMessageList() {
    let urls=`/api/ShuttleMessageNotification/GetMessageList`
    return http.get(urls)
}



// 获取登录用户的信息
async function GetCurrentUserInfo() {
    let urls=`/api/User/GetCurrentUserInfo`
    return http.post(urls)
}


//重新生成语言包
async function CreateLanguagePack() {
    let urls=`/api/SysLanguage/createLanguagePack`
    return http.get(urls)
}



//获取字典
async function GetVueDictionary(params) {
    let urls=`api/SysDictionary/GetVueDictionary`
    return http.post(urls,params)
}


//批量审核
async function BatchAutio(params) {
   let urls=`/api/SafetyForAllHazardReports/BatchAutio`
   return http.post(urls,params)
}


//根据权限获取字典
async function GetVueDictionaryByKey(params) {
    let urls=`/api/SysDictionary/GetVueDictionaryByKey?Key=`+params
    return http.get(urls) 
}

//获取月度数据信息
async function GetMonthData() {
    let urls=`/api/MonthlySafetyReports/GetMonthData`
    return http.get(urls) 
}

//获取厂别分类年度部门分类数据
async function GetDepartmentClassData() {
    let urls=`/api/MonthlySafetyReports/GetDepartmentClassData`
    return http.get(urls) 
}



//获取各个部门的提报率
async function GetDepartmentReportRate() {
    let urls=`/api/MonthlySafetyReports/GetDepartmentReportRate`
    return http.get(urls) 
}


//获取提报之星排名
async function GainRanking() {
    let urls=`/api/SafetyForAllStarMonth/GainRanking`
    return http.get(urls) 
}


//获取提报之星排名
async function Testlogin() {
    let urls=`/api/SafetyForAllUserInfo/TestLogin`
    return http.get(urls) 
}


//账号密码登录
async function AccountLogin(params) {
    let urls=`api/user/login`
    return http.post(urls,params)
}





export default{
    AccountLogin,
    Testlogin,
    GainRanking,
    GetDepartmentReportRate,
    GetDepartmentClassData,
    GetMonthData,
    GetVueDictionaryByKey,
    BatchAutio,
    GetVueDictionary,
    CreateLanguagePack,
    GetCurrentUserInfo,
    ReadMessages,
    GetMessageList
}